package com.lhf.azkaban.springbatch.example.service.impl;

import com.lhf.azkaban.springbatch.example.mapper.RepayOrderInfoMapper;
import com.lhf.azkaban.springbatch.example.mode.RepayOrderInfo;
import com.lhf.azkaban.springbatch.example.service.RepayOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:95780
 * @Date: 10:54 2019/11/21
 * @Description:
 */
@Service
public class RepayOrderInfoServiceImpl implements RepayOrderInfoService {
    @Autowired
    private RepayOrderInfoMapper repayOrderInfoMapper;

    @Override
    public void saveRepayOrderInfo(RepayOrderInfo repayOrderInfo) {
        repayOrderInfoMapper.saveRepayOrderInfo(repayOrderInfo);
    }

    @Override
    public void saveRepayOrderInfoBatch(List<RepayOrderInfo> list) {
        repayOrderInfoMapper.saveRepayOrderInfoBatch(list);
    }

    @Override
    public void deleteRepayOrderInfo(int id) {
        repayOrderInfoMapper.deleteRepayOrderInfo(id);
    }

    @Override
    public List<RepayOrderInfo> getRepayOrderInfoList(RepayOrderInfo repayOrderInfo) {
        return repayOrderInfoMapper.getRepayOrderInfoList(repayOrderInfo);
    }
}
